package WWW.SST.LIB;

import MOLE.*;

/** 
 Html_ZS ��ժҪ˵����
*/
public class Html_ZS
{
	public Html_ZS()
	{
		//
		// TODO: �ڴ˴���ӹ��캯���߼�
		//
	}

	public final String[][] all_qh()
	{
		String[][] all_kj = new String[72][6];
		int[] arri_kj = new int[5];
		int i = 0;
		String s_sql = "select * from (select top 72 id, qihao,kaij from qishu where len(kaij)=5 order by id desc) as tb  order by id";
		System.Data.SqlClient.SqlDataReader dr = SQL.ExecuteReader(s_sql);
		while (dr.Read())
		{
			arri_kj[0] = Integer.parseInt(dr.getItem("kaij").toString().substring(0,1));
			arri_kj[1] = Integer.parseInt(dr.getItem("kaij").toString().substring(1, 2));
			arri_kj[2] = Integer.parseInt(dr.getItem("kaij").toString().substring(2, 3));
			arri_kj[3] = Integer.parseInt(dr.getItem("kaij").toString().substring(3, 4));
			arri_kj[4] = Integer.parseInt(dr.getItem("kaij").toString().substring(4, 5));
			all_kj[i][0] = dr.getItem("qihao").toString(); //Ϊ�ں�
			all_kj[i][1] = dr.getItem("kaij").toString(); //Ϊ��������
			all_kj[i][2] = (arri_kj[3] + arri_kj[4]).toString(); //Ϊ���Ǻ�ֵ
			all_kj[i][3] = (arri_kj[2] + arri_kj[3] + arri_kj[4]).toString(); //Ϊ���Ǻ�ֵ

			if (arri_kj[3] > 4 && arri_kj[3] % 2 == 0) //��С��˫
			{
				all_kj[i][4] = "��˫";
			}
			else if (arri_kj[3] > 4 && arri_kj[3] % 2 == 1)
			{
				all_kj[i][4] = "��";
			}
			else if (arri_kj[3] < 5 && arri_kj[3] % 2 == 1)
			{
				all_kj[i][4] = "С��";
			}
			else
			{
				all_kj[i][4] = "С˫";
			}
			if (arri_kj[3] > 4 && arri_kj[3] % 2 == 0)
			{
				all_kj[i][4] += "��˫";
			}
			else if (arri_kj[3] > 4 && arri_kj[3] % 2 == 1)
			{
				all_kj[i][4] += "��";
			}
			else if (arri_kj[3] < 5 && arri_kj[3] % 2 == 1)
			{
				all_kj[i][4] += "С��";
			}
			else
			{
				all_kj[i][4] += "С˫";
			}


			if (arri_kj[3] != arri_kj[4]) //�Ƿ�Ϊ����
			{
				all_kj[i][5] = "no";
			}
			else
			{
				all_kj[i][5] = "yes";
			}
			i++;
		}
		dr.Close();
		return all_kj;
	}

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region //����3��2�Ǻ�ֵ����ͼ
//		public string[] ZX_23h(string[,] arr)
//		{
//			string qihao_tb,h3_tb,h2_tb,ds_tb;
//			string[] arr_23h=new string[5];
//			qihao_tb="<table width=\"180\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CA006A\" class=\"t12\">";
//			qihao_tb+="<tr align=\"center\" valign=\"middle\"><td width=\"32\" class=\"td0\">���</td>";
//			qihao_tb+="<td width=\"77\" height=\"38\" class=\"td0\">����</td><td width=\"67\" class=\"td0\">��������</td></tr>";
//
//			h3_tb="<table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CA006A\" class=\"t12\">";
//			h3_tb+="<tr align=\"center\" valign=\"middle\"><td height=\"18\" colspan=\"28\" class=\"td0\"> ���Ǻ�ֵ</td><td width=\"60\" rowspan=\"2\" class=\"td0\">��β</td><td colspan=\"3\" class=\"td0\">��λ</td><td colspan=\"3\" class=\"td0\">ʮλ</td><td colspan=\"3\" class=\"td0\">��λ</td></tr>";
//			h3_tb+="<tr align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><td width=\"15\" height=\"19\" bgcolor=\"#FFFFCE\">0</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\">2</td><td width=\"15\" bgcolor=\"#FFFFCE\">3</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">4</td><td width=\"15\" bgcolor=\"#FFFFCE\">5</td><td width=\"15\" bgcolor=\"#FFFFCE\">6</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">7</td><td width=\"15\" bgcolor=\"#FFFFCE\">8</td><td width=\"15\" bgcolor=\"#FFFFCE\">9</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">10</td><td width=\"15\" bgcolor=\"#FFFFCE\">11</td><td width=\"15\" bgcolor=\"#FFFFCE\">12</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">13</td><td width=\"15\" bgcolor=\"#FFFFCE\">14</td><td width=\"15\" bgcolor=\"#FFFFCE\">15</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">16</td><td width=\"15\" bgcolor=\"#FFFFCE\">17</td><td width=\"15\" bgcolor=\"#FFFFCE\">18</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">19</td><td width=\"15\" bgcolor=\"#FFFFCE\">20</td><td width=\"15\" bgcolor=\"#FFFFCE\">21</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">22</td><td width=\"15\" bgcolor=\"#FFFFCE\">23</td><td width=\"15\" bgcolor=\"#FFFFCE\">24</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">25</td><td width=\"15\" bgcolor=\"#FFFFCE\">26</td><td width=\"15\" bgcolor=\"#FFFFCE\">27</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//            h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td></tr>";
//
//			h2_tb="<table width=\"305\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CA006A\" class=\"t12\">";
//			h2_tb+="<tr align=\"center\" valign=\"middle\"><td height=\"20\" colspan=\"19\" class=\"td0\">���Ǻ�ֵ</td><td width=\"60\" rowspan=\"2\" class=\"td0\">��β</td><td colspan=\"3\" class=\"td0\">ʮλ</td><td colspan=\"3\" class=\"td0\">��λ</td></tr>";
//			h2_tb+="<tr align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><td height=\"20\" bgcolor=\"#FFFFCE\">0</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">1</td><td bgcolor=\"#FFFFCE\">2</td><td bgcolor=\"#FFFFCE\">3</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">4</td><td bgcolor=\"#FFFFCE\">5</td><td bgcolor=\"#FFFFCE\">6</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">7</td><td bgcolor=\"#FFFFCE\">8</td><td bgcolor=\"#FFFFCE\">9</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">10</td><td bgcolor=\"#FFFFCE\">11</td><td bgcolor=\"#FFFFCE\">12</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">13</td><td bgcolor=\"#FFFFCE\">14</td><td bgcolor=\"#FFFFCE\">15</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">16</td><td bgcolor=\"#FFFFCE\">17</td><td bgcolor=\"#FFFFCE\">18</td>";
//			h2_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//			h2_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td></tr>";
//
//			for(int i=0;i<arr.Length;i++)
//			{
//				qihao_tb+="<tr align=\"center\" valign=\"middle\">\n<td class=\"td1\">"+i+"</td><td height=\"20\"  class=\"td1\">"+arr[i,0]+"</td><td class=\"td1\">"+arr[i,1]+"</td></tr>\n";
//				for(int j=0;j<28;j++)
//				{
//					if(Convert.ToInt32(arr[i,3].ToString())==j)
//						h3_tb+="<td class=\"td2\" id=\"a"+i+"\">&nbsp;</td>";
//				}
//			}
//			qihao_tb+="<tr align=\"center\" valign=\"middle\"><td height=\"100\" colspan=\"3\" class=\"td1\">���ִ���</td></tr>\n";
//			qihao_tb+="<tr align=\"center\" valign=\"middle\"><td height=\"20\" colspan=\"3\" class=\"td5\">�����©</td></tr>\n";
//			qihao_tb+="<tr align=\"center\" valign=\"middle\">\n<td width=\"32\" class=\"td0\">���</td>\n";
//			qihao_tb+="<td height=\"38\" class=\"td0\">����</td>\n<td width=\"67\" class=\"td0\">��������</td>\n</tr>\n</table>";
//			arr_23h[0]=qihao_tb;
//
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\">2</td><td width=\"15\" bgcolor=\"#FFFFCE\">3</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">4</td><td width=\"15\" bgcolor=\"#FFFFCE\">5</td><td width=\"15\" bgcolor=\"#FFFFCE\">6</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">7</td><td width=\"15\" bgcolor=\"#FFFFCE\">8</td><td width=\"15\" bgcolor=\"#FFFFCE\">9</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">10</td><td width=\"15\" bgcolor=\"#FFFFCE\">11</td><td width=\"15\" bgcolor=\"#FFFFCE\">12</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">13</td><td width=\"15\" bgcolor=\"#FFFFCE\">14</td><td width=\"15\" bgcolor=\"#FFFFCE\">15</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">16</td><td width=\"15\" bgcolor=\"#FFFFCE\">17</td><td width=\"15\" bgcolor=\"#FFFFCE\">18</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">19</td><td width=\"15\" bgcolor=\"#FFFFCE\">20</td><td width=\"15\" bgcolor=\"#FFFFCE\">21</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">22</td><td width=\"15\" bgcolor=\"#FFFFCE\">23</td><td width=\"15\" bgcolor=\"#FFFFCE\">24</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\">25</td><td width=\"15\" bgcolor=\"#FFFFCE\">26</td><td width=\"15\" bgcolor=\"#FFFFCE\">27</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//			h3_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td></tr>";
//			h3_tb+="<tr align=\"center\" valign=\"middle\"><td height=\"18\" colspan=\"28\" class=\"td0\"> ���Ǻ�ֵ</td><td width=\"60\" rowspan=\"2\" class=\"td0\">��β</td><td colspan=\"3\" class=\"td0\">��λ</td><td colspan=\"3\" class=\"td0\">ʮλ</td><td colspan=\"3\" class=\"td0\">��λ</td></tr></table>";
//
//			h2_tb+="<tr align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><td height=\"20\" bgcolor=\"#FFFFCE\">0</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">1</td><td bgcolor=\"#FFFFCE\">2</td><td bgcolor=\"#FFFFCE\">3</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">4</td><td bgcolor=\"#FFFFCE\">5</td><td bgcolor=\"#FFFFCE\">6</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">7</td><td bgcolor=\"#FFFFCE\">8</td><td bgcolor=\"#FFFFCE\">9</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">10</td><td bgcolor=\"#FFFFCE\">11</td><td bgcolor=\"#FFFFCE\">12</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">13</td><td bgcolor=\"#FFFFCE\">14</td><td bgcolor=\"#FFFFCE\">15</td>";
//			h2_tb+="<td bgcolor=\"#FFFFCE\">16</td><td bgcolor=\"#FFFFCE\">17</td><td bgcolor=\"#FFFFCE\">18</td>";
//			h2_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td>";
//			h2_tb+="<td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">0</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">1</td><td width=\"15\" bgcolor=\"#FFFFCE\" class=\"t12\">2</td></tr>";
//			h3_tb+="</tr><tr align=\"center\" valign=\"middle\"><td height=\"20\" colspan=\"19\" class=\"td0\">���Ǻ�ֵ</td><td width=\"60\" rowspan=\"2\" class=\"td0\">��β</td><td colspan=\"3\" class=\"td0\">ʮλ</td><td colspan=\"3\" class=\"td0\">��λ</td></tr></table>";
//		}

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region //���ɱ�׼Ͷע����ͼ
	public final String[] BZ_Html(String[][] arr)
	{
		String s_qihao,s_kjid,s_style1,s_style2,s_strjs = "",s_qishu = "";
		int i_sun = 0,i_jishu = 0,i_oushu = 0,i_big = 0,i_small = 0,i = 0,j = 0,m = 0;
		int[] arri_kj = new int[5]; //��������ĵ�λ����
		int[][] arri_num = new int[][]
		{
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0}
		};
		int[][] arri_max = new int[][]
		{
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0}
		};
		int[][] arri_time = new int[][]
		{
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0},
			{0,0,0,0,0,0,0,0,0,0}
		};
		String[] arr_html = new String[6];


		s_qishu = "<table width=\"180\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CA006A\" class=\"t12\">";
		s_qishu += "<tr align=\"center\" valign=\"middle\"><td width=\"32\" class=\"td0\">���</td>";
		s_qishu += "<td width=\"77\" height=\"38\" class=\"td0\">����</td><td width=\"67\" class=\"td0\">��������</td></tr>";

		for (m = 0;m < arr.length;m++)
		{
			s_kjid = arr[m][1].toString();
			s_qihao = arr[m][0].toString();
			s_qihao = s_qihao.substring(4, s_qihao.length());
			s_qishu += "<tr align=\"center\" valign=\"middle\">\n<td class=\"td1\">" + m + "</td><td height=\"20\"  class=\"td1\">" + s_qihao + "</td><td class=\"td1\">" + s_kjid + "</td></tr>\n";


			arri_kj[0] = Integer.parseInt(s_kjid.substring(0,1));
			arri_kj[1] = Integer.parseInt(s_kjid.substring(1, 2));
			arri_kj[2] = Integer.parseInt(s_kjid.substring(2, 3));
			arri_kj[3] = Integer.parseInt(s_kjid.substring(3, 4));
			arri_kj[4] = Integer.parseInt(s_kjid.substring(4, 5));
			for (j = 0;j < 5;j++)
			{
				arr_html[j] += "<tr align=\"center\" valign=\"middle\">";
				if (j == 1 || j == 3)
				{
					s_style1 = "td3";
					s_style2 = "tdy";
				}
				else
				{
					s_style1 = "td2";
					s_style2 = "tdw";
				}

				for (i = 0; i < 10;i++)
				{
					if (i == arri_kj[j])
					{
						arr_html[j] += "<td class=\"" + s_style2 + "\" id=\"" + call_tdID(j, m) + "\">" + arri_kj[j] + "</td>\n";
						arri_num[j][i] = 0;
						arri_time[j][i]++;
					}
					else
					{
						arri_num[j][i]++;
						arr_html[j] += "<td class=\"" + s_style1 + "\">" + arri_num[j][i] + "</td>\n";
					}
					if (arri_max[j][i] < arri_num[j][i])
					{
						arri_max[j][i] = arri_num[j][i];
					}

				}
				arr_html[j] += "</tr>";
				if (m > 0)
				{
					if (j == 1 || j == 3)
					{
						arr_html[j] += "<SCRIPT>DrawLine(document.getElementById(\"" + call_tdID(j, m) + "\"),document.getElementById(\"" + call_tdID(j, m - 1) + "\"),\"#ffffff\");</SCRIPT>\n";
					}
					else
					{
						arr_html[j] += "<SCRIPT>DrawLine(document.getElementById(\"" + call_tdID(j, m) + "\"),document.getElementById(\"" + call_tdID(j, m - 1) + "\"),\"#333333\");</SCRIPT>\n";
					}
				}
			}
		}
		for (j = 0;j < 5;j++)
		{
			String s_time = "<tr align=\"center\" valign=\"middle\">";
			String s_max = "<tr align=\"center\" valign=\"middle\">";
			for (i = 0;i < 10;i++)
			{
				s_time += "<td valign=\"bottom\" height=\"100\" class=\"td4\">" + arri_time[j][i] + "<br/><img src=\"images/tiao2.gif\" width=\"9\" height=\"" + 1 * arri_time[j][i] + "\" /></td>\n";
				s_max += "<td class=\"td5\">" + arri_max[j][i] + "</td>\n";
			}
			arr_html[j] += s_time + "</tr>\n" + s_max + "</tr>\n";
			arr_html[j] = call_TdHtml(j, arr_html[j]);
		}
		s_qishu += "<tr align=\"center\" valign=\"middle\"><td height=\"100\" colspan=\"3\" class=\"td1\">���ִ���</td></tr>\n";
		s_qishu += "<tr align=\"center\" valign=\"middle\"><td height=\"20\" colspan=\"3\" class=\"td5\">�����©</td></tr>\n";
		s_qishu += "<tr align=\"center\" valign=\"middle\">\n<td width=\"32\" class=\"td0\">���</td>\n";
		s_qishu += "<td height=\"38\" class=\"td0\">����</td>\n<td width=\"67\" class=\"td0\">��������</td>\n</tr>\n</table>";
		arr_html[5] = s_qishu;
		return arr_html;

	}

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion


	public static void Creat_Html(String txtFilePath, String strMessage)
	{
		String path = txtFilePath;
		path = System.Web.HttpContext.Current.Server.MapPath(path);
		String dir = Directory.GetParent(path).toString();
		if (!(new java.io.File(dir)).isDirectory())
		{
			(new java.io.File(dir)).mkdirs();
		}
		if ((new java.io.File(path)).isFile())
		{
			(new java.io.File(path)).delete();
		}

		StreamWriter writer = new StreamWriter(path,false,System.Text.Encoding.GetEncoding("GB2312"));
		writer.Write(strMessage);
		//writer.WriteLine(strMessage);
		writer.Flush();
		writer.Close();
	}

	private String call_tdID(int x, int y)
	{
		String s_tdid = "";
		switch (x)
		{
			case 0:
				s_tdid = "a";
				break;
			case 1:
				s_tdid = "b";
				break;
			case 2:
				s_tdid = "c";
				break;
			case 3:
				s_tdid = "d";
				break;
			case 4:
				s_tdid = "e";
				break;
			default:
				s_tdid = "a";
				break;
		}
		s_tdid += String.valueOf(y);
		return s_tdid;
	}

	private String call_TdHtml(int ni, String str)
	{
		String s_html = "<tr align=\"center\" valign=\"middle\"><td height=\"18\" colspan=\"10\" class=\"td0\">$$$</td></tr>";
		String html_s = "<tr align=\"center\" valign=\"middle\" bgcolor=\"###\">" + "<td width=\"15\" height=\"19\" >0</td>" + "<td width=\"15\" >1</td><td width=\"15\" >2</td><td width=\"15\" >3</td>" + "<td width=\"15\" >4</td><td width=\"15\" >5</td><td width=\"15\" >6</td>" + "<td width=\"15\" >7</td><td width=\"15\" >8</td><td width=\"15\" >9</td>" + "</tr>";
		switch (ni)
		{
			case 0:
				s_html = s_html.replace("$$$","��λ");
				html_s = html_s.replace("###","#EAEAEA");
				break;
			case 1:
				s_html = s_html.replace("$$$","ǧλ");
				html_s = html_s.replace("###","#FFFFCE");
				break;
			case 2:
				s_html = s_html.replace("$$$"," ��λ");
				html_s = html_s.replace("###","#EAEAEA");
				break;
			case 3:
				s_html = s_html.replace("$$$","ʮλ");
				html_s = html_s.replace("###","#FFFFCE");
				break;
			case 4:
				s_html = s_html.replace("$$$"," ��λ");
				html_s = html_s.replace("###","#EAEAEA");
				break;
		}

		String all_html = "<table width=\"161\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CA006A\" class=\"t12\">";
		all_html = all_html + s_html + html_s + str + html_s + s_html + "</table>";
		return all_html;
	}
}